package day10.supermarket;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Card
 * zhangJ
 * 2022/6/30 17:06
 **/
public class Card implements Serializable {
    private String num;
    private int jifen;

    public Card(String num, int jifen) {
        this.num = num;
        this.jifen = jifen;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public int getJifen() {
        return jifen;
    }

    public void setJifen(int jifen) {
        this.jifen = jifen;
    }

    public void show(){
        System.out.println("会员号："+getNum());
        System.out.println("会员积分："+getJifen());
    }
}
